package com.jyy.prefabricated.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @version 1.0.0
 * @author: zjj
 */

@Data
public class StudentDto {

    private Integer id;

    private Integer trainingOrganizationId;

    private String name;

    private String idCard;

    private String tel;

    private String email;
    private String validateCode;
    private Integer status;

    /*
     *证件照
     */
    private String idPhoto;

    /**
     * 密码
     */
    private String password;

    /*
     *'出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dateBirth;
    private List<Integer> projectIds = new ArrayList<>();

    private List<Integer> courseIds = new ArrayList<>();

    private List<Integer> coursePackageIds = new ArrayList<>();
}
